#include<stdio.h>
#include<stdlib.h>
int main()
{
	int n = 10;
	int i = 1 ;
	int p = 0 ;
	int sum = 1 ;
	while (i<=n)
	{sum = sum * i ;
	i++;
	p += sum;
	}
	printf ("%d\n",p);
	return 0;
}
/*int main ()
{   int n = 0;
	int p = 0 ;
	for (n = 1 ; n <= 10 ; n++)
{
	int sum = 1 ;
	int i = 1 ;
	while (i<=n)
	{sum = sum * i ;
	i++;
	}
	p = sum + p ;
}
	printf ("%d\n",p);
	return 0 ;
}*/

